<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
	String errorColor = "border: 1px solid red;";
	String oldPassErr = "";
	String notEqualErr = "";
	
	String error = request.getParameter("error");
	if(error != null) {
		if(error.equals("oldPassError")) { oldPassErr = errorColor; }
		else if(error.equals("notEqualError")) notEqualErr = errorColor;
	}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<table class="form">
	<tr><td class="label">Name:</td>				<td class="input"><%= request.getSession().getAttribute("userName") %></td></tr>
	<tr><td class="label">New password:</td>		<td class="input"><input style="<%=notEqualErr%>" type="password" id="newpassword" /></td></tr>
	<tr><td class="label">Repeat new password:</td>	<td class="input"><input style="<%=notEqualErr%>" type="password" id="newpasswordrepeat" /></td></tr>
	<tr><td class="label">Current password:</td>	<td class="input"><input style="<%=oldPassErr%>" type="password" id="password" /></td></tr>
	<tr><td class="label">&nbsp;</td>				<td class="submit"><input type="submit" class="button" id="button" value="Save" onclick="doUpdateAcountInfo()"/></td></tr>
</table>
